from flask import current_app
from flask import render_template

from . import index_blu


@index_blu.route('/')
def index():
    # 添加测试数据成功
    # session["name"] = "老王"
    return render_template("index.html")
    # return "111111"


# @index_blu.route('/favicon.ico')
# def favicon():
#     #  def send_static_file(self, filename)   filename ==> 'news/favicon.ico'
#     return current_app.send_static_file('img/favicon.ico')


